package com.lkd.mapper;

import com.lkd.entity.Node;
import com.lkd.vo.BusinessVo;
import com.lkd.vo.NodeVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface NodeMapper {

    List<NodeVo> selectByNodeCondition(String name, String regionId);

    @Select("select * from tb_business")
    List<BusinessVo> selectBusinessType();

    void insert(NodeVo nodeVo);

    NodeVo selectByNodeId(Long nodeId);

    List<NodeVo> selectByNodeId1(Long nodeId);

    void updateById(Node node);

    void deleteById(Long nodeId);

    NodeVo selectByInnerCode(String innerCode);

    int count();
}
